package com.zijie.hosptal.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class Reserve {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer doctorId;
    private Integer patientId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reserveTime;
    private Double score;
    private String status;
    private String comment;
    private Integer scheduleId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate updateTime;
    @TableField(exist = false)
    private DoctorSchedules doctorSchedules;
    @TableField(exist = false)
    private Patient patient;
    @TableField(exist = false)
    private Doctor doctor;
    @TableField(exist = false)
    private LocalDate startTime;
    @TableField(exist = false)
    private LocalDate endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime;

}
